<?php

namespace App\Modules\Apicrzs\Http\Controllers;

use App\Modules\Apicrzs\Services\Tools\BankServices;

use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class BankController extends BaseApicrzsController
{
    public function __construct(BankServices $authService)
    {
        $this->service = $authService;
    }

    public function getSelectLists(Request $request): JsonResponse
    {
        $params= $request->all();
        if ($result = $this->service->getList($params)){
            return $this->sendApiSuccess($result, $this->service->getError());
        }else{
            return $this->sendApiError($this->service->getError());
        }

    }
}
